package com.smforj.ssm.modules.lib.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.smforj.ssm.frame.core.dao.impl.BaseDaoImpl;
import com.smforj.ssm.modules.lib.dao.SysReaderDao;
import com.smforj.ssm.modules.lib.domain.SysReader;

/***
 * 读者信息
 * 
 * @author Haijun Gao 
 * @date 2016-7-31 下午5:02:46
 * @desp http://www.cnblogs.com/saga5998/
 * @email 573107773@qq.com
 */
@Repository("sysReaderDao")
public class SysReaderDaoImpl extends BaseDaoImpl<SysReader> implements SysReaderDao {

	@Override
	public SysReader selectReaderByRfid(String rfid) {  
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("rfid", rfid); 
		return getSqlSessionTemplate().selectOne(getSqlName("selectReaderByRfid"), params);
	} 
	
}
